package ru.stepuk.modern.util;

import java.awt.Shape;
import java.awt.geom.Ellipse2D;
import org.apache.commons.collections15.Transformer;
import ru.stepuk.modern.nodes.Node;

/**
 *
 * @author ivan
 */
public class NodeShapeTransformer implements Transformer<Node, Shape> {

    private static final int SIZE = 32;

    public Shape transform(Node i) {
        return new Ellipse2D.Float(-SIZE / 2, -SIZE / 2, SIZE, SIZE);
    }

}
